package com.timmy.cloud_pc_test;

public enum TestEnum {

    /**
     * static {
     * b.a = new b("DIRECTION_LEFT", 0);
     * b.b = new b("DIRECTION_RIGHT", 1);
     * b.c = new b("DIRECTION_UP", 2);
     * b.d = new b("DIRECTION_DOWN", 3);
     * b.e = new b("DIRECTION_UP_LEFT", 4);
     * b.f = new b("DIRECTION_UP_RIGHT", 5);
     * b.g = new b("DIRECTION_DOWN_LEFT", 6);
     * b.h = new b("DIRECTION_DOWN_RIGHT", 7);
     * b.i = new b("DIRECTION_CENTER", 8);
     * b.j = new b[]{b.a, b.b, b.c, b.d, b.e, b.f, b.g, b.h, b.i};
     * }
     */

    a("DIRECTION_LEFT", 0),
    b("DIRECTION_RIGHT", 1),
    c("DIRECTION_UP", 2),
    d("DIRECTION_DOWN", 3),
    e("DIRECTION_UP_LEFT", 4),
    f("DIRECTION_UP_RIGHT", 5),
    g("DIRECTION_DOWN_LEFT", 6),
    h("DIRECTION_DOWN_RIGHT", 7),
    i("DIRECTION_CENTER", 8);

    private String name;
    private int index;

    TestEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
}
